<?php

/**
 * Created by Reliese Model.
 */

namespace App\Models\Curse;

use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;

/**
 * Class Curse
 *
 * @property int $id
 * @property string $name
 * @property int $class_id
 * @property float $original_price
 * @property float $sell_price
 * @property float $deposit_ratio
 * @property int $is_recommend
 * @property int $visit
 * @property string $info
 * @property string $cover_img
 * @property int $sort
 * @property Carbon $created_at
 * @property Carbon $updated_at
 *
 * @package App\Models
 */
class Curse extends Model
{
	protected $table = 'curses';

	protected $casts = [
		'class_id' => 'int',
		'original_price' => 'float',
		'sell_price' => 'float',
		'deposit_ratio' => 'float',
		'is_recommend' => 'int',
		'visit' => 'int',
		'sort' => 'int'
	];

	protected $fillable = [
		'name',
		'class_id',
		'original_price',
		'sell_price',
		'deposit_ratio',
		'is_recommend',
		'visit',
		'info',
		'cover_img',
		'sort'
	];
}
